<?php
if (! defined ( FLAG )){ trigger_error('Access error!', E_USER_ERROR); die; }

require LIBS_DIR.'/smarty/Smarty.class.php';

class Templaer {
public $smarty;
	function  __construct($CONFIG){

		$this->smarty = new Smarty();
		$this->smarty->compile_check = $CONFIG['compile_check'];
		$this->smarty->debugging = $CONFIG['debugging'];

		$this->smarty->compile_dir = $CONFIG['compile_dir'];
		$this->smarty->template_dir = $CONFIG['template_dir'];
		$this->smarty->config_dir = $CONFIG['config_dir'];
		$this->smarty->cache_dir = $CONFIG['cache_dir'];	
	}
};
?>